To view this file in Notepad, choose Word Wrap from the Edit menu. To print it neatly from Notepad, adjust the width of the Notepad window such that the window is about the same width as the first line of asterisks.
This file provides information about using Borland C++ 5.0 with the C-CPP source files provided with Visio 5.0.
DEF File
--------
In Borland C++ 5.0, a function compiled with the __cdecl calling convention is prefixed, by default, with a leading underscore ("_") in the exported names table. However, Visio MUST be able to recognize a VisioLibMain export from a VSL using GetProcAddress. If the export has a leading underscore, Visio will not recognize it. To provide this export in a form that Visio can recognize, add the following section to a DEF file for your Borland C++ project:
EXPORTS
VisioLibMain = _VisioLibMain @1
This section defines an alias in the exported names table so that the _VisioLibMain built by the compiler appears as VisioLibMain (without the leading underscore) to programs that load the VSL.
Compiler Warnings
-----------------
When compiling the C-CPP files provided with Visio 5.0 with the Borland C++ 5.0 compiler, "unused argument" warnings may occur. These warnings are benign and can safely be ignored.